home *** CD-ROM | disk | FTP | other *** search
/ Amoszine 8 / Amoszine 8 (Disk 1 of 3).adf / ARTS / MS_Steve_Prob.asc / MS_Steve_Prob.asc
Encoding:
Text File  |  1998-04-26  |  1.5 KB  |  48 lines

  1.       @2{ANSWER TO STEVE'S CODING PROBLEM
  2.       @3
  3.       }Sent In By MS Beardwood
  4.       @4
  5.  
  6.       Here's the answer to Steve's problem in just one line ...
  7.       @1eg.
  8.       Exec "sys:c/list > Ram:Test.asc All DH0:"
  9.       @4
  10.       The above line will create a list of all the Dirs and Files on DH0:
  11.       and  save  them  as a text file in the Ram:    Disk.    The program
  12.       uses  the  LIST  command  from  WBench and as long as the device is
  13.       mounted, then it will create a list of the disk.
  14.  
  15.       You could also use the DIR command from the C Dir if you don't like
  16.       the way LIST sets out the text file.
  17.       @1eg.
  18.       Exec "sys:c/dir > Ram:Test.asc DH0: Opt a"
  19.       @4
  20.       So now I'm sure you could write the rest of the program yourself.
  21.       @1eg
  22.       DEVICE$="DH0:" : OUTPUT$="RAM:Test.asc"
  23.       Exec "SYS:C/List > "+OUTPUT$+" All "+DEVICE$
  24.       etc.
  25.       @4You  could also get Amos to format the text for you into the format
  26.       of your choice ...
  27.  
  28.       Well, that's all.  I hope you like it.
  29.  
  30.       Scott.
  31.  
  32.       @5
  33.       Thanx  for  taking  the  time  out to send in a solution to Steve's
  34.       problem Scott.
  35.  
  36.       I'm  sure Steve will have many happy (and frustrating) hours trying
  37.       to work out a way to get Amos to format his text.
  38.  
  39.       Don't ya know Steve is a lamer ?
  40.       @1
  41.       (But a seriously good 'un ;-)
  42.       @5
  43.       There  is  other  help files on this issue of Az, so check them out
  44.       also. (See Steve, everyone's trying to help you out?!?)
  45.       Thanx again.
  46.       @1
  47.       End.
  48.